
<?php if(!empty($this->result)){?>
<div class="alert alert-danger" role="alert">
    <ul>
        <?php foreach ($this->result as $r){?>
        <li><?php echo $r?></li>
        <?php }?>
    </ul>
</div>
<?php }?>

<form enctype="multipart/form-data" action="" method="post" id="add-new-app" class="form-horizontal">
    <fieldset class="ifs_tab_cell">
    	<legend>Bước 1: Khai báo tên ứng dụng</legend>
    	<div class="tab-content-cell">
    	   
    		<div class="form-group">
    			<label for="name_app" class="col-xs-3 control-label">Tên ứng dụng</label>
    			<div class="col-xs-5">
    				<input type="text" class="form-control" id="name_app_new"
    					name="name_app" placeholder="Tên ứng dụng">
    
    			</div>
    			<div class="col-xs-4">
    				<p class="help-block-1">Tối đa 150 ký tự</p>
    			</div>
    		</div>
    		<div class="form-group">
    			<label for="version_name" class="col-xs-3 control-label">Tên phiên bản (VD. 2.1.1)</label>
    			<div class="col-xs-5">
    				<input type="text" class="form-control" id="version_name_new" name="version_name"
    					placeholder="Tên phiên bản">
    			</div>
    			<div class="col-xs-4">
    			     <p class="help-block-1">Tối đa 30 ký tự</p>
    			</div>
    		</div>
    		<div class="form-group">
    			<label class="col-xs-3 control-label">Nhà phát triển</label>
    			<div class="col-xs-5">
    				<select class="form-control" id="dev_id" name="dev_id">
    				    <?php foreach ($this->dev as $dev){?>
    					<option value="<?php echo $dev['dev_id']?>"><?php echo $dev['dev_name']?></option>
    					<?php }?>
    					
    				</select>
    			</div>
    			<div class="col-xs-4">
    			     <p class="help-block-1">Tối đa 30 ký tự</p>
    			</div>
    		</div>
    		<div class="form-group">
    			<label for="file-app" class="col-xs-3 control-label">Duyệt và tải
    				file lên</label>
    			<div class="col-xs-5">
    				<input type="file" id="file_app_new" name="file_app">
    				<p class="help-block">Loại tệp: *.apk.</p>
    			</div>
    
    		</div>
    	</div>
    </fieldset>
    <div class="tab-footer">
		<div class="col-xs-6" style="padding-left: 0">
			<input class="btn btn-default" type="reset" id="cancle-app"
				value="Hủy bỏ"> <input class="btn btn-success" type="submit"
				id="save-app" value="Bước tiếp theo">
		</div>
	</div>
	<div class="clearfix"></div>
</form>